home *** CD-ROM | disk | FTP | other *** search
/ Mac Action 1996 January / mac-action-07.iso / mac / Inside Action / Total Distortion Big Demo / beSmashn.Dxr / 00129.ls < prev    next >
Encoding:
Text File  |  1995-06-05  |  18.4 KB  |  680 lines

  1. on initit
  2.   global smash
  3.   if objectp(smash) then
  4.     smash(mdispose)
  5.   end if
  6.   set smash to SmashFact(mnew)
  7. end
  8.  
  9. factory SmashFact
  10. method mnew
  11.   instance damageTot, SmashTot, WtBtnSpr, BallBtnSpr, stars, WeightSpr, ballSpr, ItemSpr1, itemspr2, ItemSpr3, itemSpr4, WeightArt, BallArt, itemart1, itemArt2, itemArt3, itemArt4, itemValue1, itemValue2, itemValue3, itemValue4, itemCntr1, itemCntr2, itemCntr3, ItemCntr4, ItemSnd1, ItemSnd2, ItemSnd3, ItemSnd4, ClokArt1, clokArtSmsh, DogArt1, DogArt2, VaseArt1, VaseArt2, bowlart1, BowlArt2, DogArt3, DogArt4, VaseArt3, VaseArt4, BowlArt3, BowlArt4, WineArt1, WineArt2, WineArt3, WineArt4, WtDropArt1, WtDropArt2, WtDropArt3, WtDropArt4, WtDropArt5, WtDropArt6, WtDropArt7, WtDropArt8, WtDropArt9, WtHRest, WtVRest, weightDo, BallDo, ItemDo1, ItemDo2, itemdo3, ItemDo4, BreakDo3, WeightH, BallH, ItemH1, ItemH2, ItemH3, ItemH4, WeightV, BallV, ItemV1, ItemV2, ItemV3, ItemV4, wtcntr, mastercntr, tempcntr, clokCntr, droppd, LaunchH1, LaunchV1, LaunchH2, LaunchV2, PixMovH, PixMovV, HandArt1, HandArt2, HandArt3, HandArt4, HandArt5
  12.   set WtBtnSpr to 21
  13.   set BallBtnSpr to 22
  14.   set HandArt1 to the number of cast "Hand.1"
  15.   set HandArt2 to HandArt1 + 1
  16.   set HandArt3 to HandArt1 + 2
  17.   set HandArt4 to HandArt1 + 3
  18.   set HandArt5 to HandArt1 + 4
  19.   set PixMovH to 14
  20.   set PixMovV to 10
  21.   set ClokArt1 to the number of cast "clok.1"
  22.   set clokArtSmsh to the number of cast "clokArtSmsh.1"
  23.   set WtDropArt1 to the number of cast "weight.1"
  24.   set WtDropArt2 to the number of cast "weight.2"
  25.   set WtDropArt3 to the number of cast "weight.3"
  26.   set WtDropArt4 to the number of cast "weight.4"
  27.   set WtDropArt5 to the number of cast "weight.5"
  28.   set WtDropArt6 to the number of cast "weight.6"
  29.   set WtDropArt7 to the number of cast "weight.7"
  30.   set WtDropArt8 to the number of cast "weight.8"
  31.   set WtDropArt9 to the number of cast "weight.9"
  32.   set LaunchH1 to 531
  33.   set LaunchV1 to 360
  34.   set LaunchH2 to -18
  35.   set LaunchV2 to 276
  36.   set ballSpr to 6
  37.   set WeightSpr to 7
  38.   set ItemSpr1 to 8
  39.   set itemspr2 to 9
  40.   set ItemSpr3 to 10
  41.   set itemSpr4 to 11
  42.   set WtHRest to the locH of sprite WeightSpr
  43.   set WtVRest to the locV of sprite WeightSpr
  44.   set WeightH to WtHRest
  45.   set WeightV to WtVRest
  46.   set DogArt1 to the number of cast "HotDog.1"
  47.   set DogArt2 to the number of cast "HotDog.2"
  48.   set VaseArt1 to the number of cast "Vase.1"
  49.   set VaseArt2 to the number of cast "Vase.2"
  50.   set bowlart1 to the number of cast "Bowl.1"
  51.   set BowlArt2 to the number of cast "Bowl.2"
  52.   set WineArt1 to the number of cast "Wine.1"
  53.   set WineArt2 to the number of cast "Wine.2"
  54.   set DogArt3 to the number of cast "HotDog.3"
  55.   set DogArt4 to the number of cast "HotDog.4"
  56.   set VaseArt3 to the number of cast "Vase.3"
  57.   set VaseArt4 to the number of cast "Vase.4"
  58.   set BowlArt3 to the number of cast "Bowl.3"
  59.   set BowlArt4 to the number of cast "Bowl.4"
  60.   set WineArt3 to the number of cast "Wine.3"
  61.   set WineArt4 to the number of cast "Wine.4"
  62.   set WeightArt to the number of cast "weight.1"
  63.   set BallArt to the number of cast "ball.1"
  64.   set itemart1 to DogArt1
  65.   set itemArt2 to DogArt1
  66.   set itemArt3 to DogArt1
  67.   set itemArt4 to DogArt1
  68.   set weightDo to "nuttin"
  69.   set BallDo to "nuttin"
  70.   set ItemDo1 to "nuttin"
  71.   set ItemDo2 to "nuttin"
  72.   set itemdo3 to "nuttin"
  73.   set ItemDo4 to "nuttin"
  74.   set itemCntr1 to 0
  75.   set itemCntr2 to 0
  76.   set itemCntr3 to 0
  77.   set ItemCntr4 to 0
  78.   set mastercntr to 1000
  79.   set tempcntr to 1000
  80.   set clokCntr to 0
  81.   set damageTot to 0
  82.   set SmashTot to 0
  83.  
  84. method award val
  85.   set dmg to val
  86.   set damageTot to damageTot + dmg
  87.   put "$" & damageTot into field "dmgFLD"
  88.   set SmashTot to SmashTot + 1
  89.  
  90. method nuttin
  91.   nothing()
  92.  
  93. method begingame
  94.   puppetSound("JSpcBtn13.AIF")
  95.   updateStage()
  96.   preLoadCast("ball.1", "WateHit.5")
  97.   set weightDo to "nuttin"
  98.   set BallDo to "nuttin"
  99.   set ItemDo1 to "nuttin"
  100.   set ItemDo2 to "nuttin"
  101.   set itemdo3 to "nuttin"
  102.   set ItemDo4 to "nuttin"
  103.   set itemCntr1 to 0
  104.   set itemCntr2 to 0
  105.   set itemCntr3 to 0
  106.   set ItemCntr4 to 0
  107.   set mastercntr to 1000
  108.   set tempcntr to 1000
  109.   set clokCntr to 0
  110.   set SmashTot to 0
  111.   set damageTot to 0
  112.   repeat with x = WeightSpr to itemSpr4
  113.     puppetSprite(x, 1)
  114.   end repeat
  115.   me(launchItem1)
  116.   set the perFrameHook to me
  117.   put mastercntr into field "timerFLD"
  118.   put "$" & damageTot into field "DmgFLD"
  119.   go("game")
  120.  
  121. method matframe
  122.   if mastercntr < 1 then
  123.     me(timesup)
  124.     exit
  125.   end if
  126.   set mastercntr to mastercntr - 1
  127.   if tempcntr > (mastercntr + 10) then
  128.     put mastercntr into field "timerFLD"
  129.     set tempcntr to mastercntr
  130.   end if
  131.   me(mPerform, weightDo)
  132.   me(mPerform, ItemDo1)
  133.   me(mPerform, ItemDo2)
  134.   me(mPerform, itemdo3)
  135.  
  136. method timesup n
  137.   set the perFrameHook to 0
  138.   repeat with x = 1 to 48
  139.     puppetSprite(x, 0)
  140.   end repeat
  141.   puppetSprite(WtBtnSpr, 0)
  142.   puppetSprite(BallBtnSpr, 0)
  143.   puppetSound(0)
  144.   if n = "LeaveGame" then
  145.     go("1")
  146.   else
  147.     set reportTx to "Game Over!" & RETURN & "You smashed "
  148.     put SmashTot & " items, worth a total of $" after reportTx
  149.     put damageTot & "." & RETURN after reportTx
  150.     put me(Eval) after reportTx
  151.     put reportTx into field "reportFLD"
  152.     go("gameover." & stars)
  153.   end if
  154.  
  155. method Eval
  156.   global UCash
  157.   if voidp(UCash) then
  158.     set UCash to 0
  159.   end if
  160.   if damageTot < 40000 then
  161.     set tx to "You are the worst smasher in the world."
  162.     set stars to 0
  163.   else
  164.     if damageTot < 90000 then
  165.       set tx to "You are a pitiful excuse for a smasher."
  166.       set stars to 1
  167.     else
  168.       if damageTot < 140000 then
  169.         set tx to "You suck at this."
  170.         set stars to 2
  171.       else
  172.         if damageTot < 200000 then
  173.           set tx to "You still suck at this."
  174.           set stars to 3
  175.         else
  176.           if damageTot < 300000 then
  177.             set tx to "You might be getting better... I wouldn't bet on it."
  178.             set stars to 4
  179.           else
  180.             if damageTot < 500000 then
  181.               set tx to "Hmm... not bad. You might become a smasher after all."
  182.               set stars to 5
  183.             else
  184.               if damageTot < 700000 then
  185.                 set tx to "Pretty good... You're getting better."
  186.                 set stars to 6
  187.               else
  188.                 if damageTot < 1000000 then
  189.                   set tx to "Wow! You did some heavy damage, but you're still NOT THE BEST."
  190.                   set stars to 7
  191.                   set UCash to UCash + 10000
  192.                 else
  193.                   if damageTot < 1500000 then
  194.                     set tx to "You really smashed things up. Damn good. But you are still not a true smasher."
  195.                     set stars to 8
  196.                   else
  197.                     set tx to "YOU ARE THE GREATEST SMASHER OF ALL TIME!"
  198.                     set stars to 10
  199.                     set UCash to UCash + 50000
  200.                   end if
  201.                 end if
  202.               end if
  203.             end if
  204.           end if
  205.         end if
  206.       end if
  207.     end if
  208.   end if
  209.   return tx
  210.  
  211. method DrawLocH spr, h
  212.   set the locH of sprite spr to h
  213.  
  214. method DrawLoc spr, h, v
  215.   set the locH of sprite spr to h
  216.   set the locV of sprite spr to v
  217.  
  218. method DropWeight
  219.   if weightDo = "nuttin" then
  220.     puppetSprite(WtBtnSpr, 1)
  221.     set the foreColor of sprite WtBtnSpr to 253
  222.     set weightDo to "WtDropCyc"
  223.     set wtcntr to 2
  224.     set WeightArt to WtDropArt2
  225.     set the castNum of sprite WeightSpr to WeightArt
  226.   end if
  227.  
  228. method WtDropCyc
  229.   if wtcntr = 9 then
  230.     set weightDo to "WtBounceA"
  231.     set WeightArt to WtDropArt9
  232.     exit
  233.   end if
  234.   set WeightArt to WeightArt + 1
  235.   set the castNum of sprite WeightSpr to WeightArt
  236.   set wtcntr to wtcntr + 1
  237.  
  238. method smashsnd itemsnd
  239.   set sndd to "wate" & itemsnd
  240.   puppetSound(sndd)
  241.  
  242. method smashsnd2 itemsnd
  243.   set sndd to "wate" & itemsnd
  244.   puppetSound(sndd)
  245.  
  246. method WtBounceA
  247.   set the locV of sprite WeightSpr to WeightV - 15
  248.   set weightDo to "WtBounceB"
  249.   if sprite WeightSpr intersects ItemSpr3 then
  250.     me(smashsnd, ItemSnd3)
  251.     set droppd to 1
  252.     me(itemhit3)
  253.   else
  254.     if sprite WeightSpr intersects ItemSpr1 then
  255.       set ItemDo1 to "BreakA1"
  256.       me(smashsnd, ItemSnd1)
  257.     else
  258.       if sprite WeightSpr intersects itemspr2 then
  259.         set ItemDo2 to "BreakA2"
  260.         me(smashsnd, ItemSnd2)
  261.       else
  262.         puppetSound("WateHit.1")
  263.       end if
  264.     end if
  265.   end if
  266.  
  267. method WtBounceB
  268.   set the locV of sprite WeightSpr to WeightV - 7
  269.   set weightDo to "WtBounceC"
  270.  
  271. method WtBounceC
  272.   set the locV of sprite WeightSpr to WeightV
  273.   set weightDo to "WtMovRite"
  274.  
  275. method WtMovRite
  276.   set wtcntr to wtcntr + 1
  277.   set WeightH to WeightH + PixMovH
  278.   set the locH of sprite WeightSpr to WeightH
  279.   if wtcntr > 50 then
  280.     set the foreColor of sprite WtBtnSpr to 117
  281.     puppetSprite(WtBtnSpr, 0)
  282.     set WeightH to WtHRest
  283.     set WeightV to WtVRest
  284.     me(DrawLoc, WeightSpr, WtHRest, WtVRest)
  285.     set the castNum of sprite WeightSpr to WtDropArt1
  286.     set weightDo to "nuttin"
  287.     set wtcntr to 0
  288.   end if
  289.  
  290. method WeightTrap
  291.   nothing()
  292.  
  293. method dropball
  294.   if BallDo = "nuttin" then
  295.     puppetSprite(BallBtnSpr, 1)
  296.     set the foreColor of sprite BallBtnSpr to 252
  297.     go("balldrop")
  298.   end if
  299.  
  300. method ballhit
  301.   if sprite ballSpr intersects ItemSpr3 then
  302.     me(smashsnd2, ItemSnd3)
  303.     set droppd to 2
  304.     me(itemhit3)
  305.   else
  306.     if sprite ballSpr intersects ItemSpr1 then
  307.       set ItemDo1 to "BreakA1"
  308.       me(smashsnd2, ItemSnd1)
  309.     else
  310.       if sprite ballSpr intersects itemspr2 then
  311.         set ItemDo2 to "BreakA2"
  312.         me(smashsnd2, ItemSnd2)
  313.       else
  314.         puppetSound("BallHit.1")
  315.       end if
  316.     end if
  317.   end if
  318.  
  319. method itemhit3
  320.   if itemdo3 starts "handgrab" then
  321.     nothing()
  322.   else
  323.     set itemdo3 to BreakDo3
  324.   end if
  325.  
  326. method BallGo
  327.   set the foreColor of sprite BallBtnSpr to 117
  328.   puppetSprite(BallBtnSpr, 0)
  329.   go("game")
  330.  
  331. method launchXtra
  332.   if itemdo3 <> "nuttin" then
  333.     exit
  334.   else
  335.     set n to random(10)
  336.   end if
  337.   if n < 5 then
  338.     me(launchClok)
  339.   else
  340.     if n < 9 then
  341.       me(launchhand)
  342.     end if
  343.   end if
  344.  
  345. method launchhand
  346.   set BreakDo3 to "HandGrabA"
  347.   set ItemSnd3 to "HandHit.1"
  348.   set itemCntr3 to 0
  349.   set itemArt3 to HandArt1
  350.   set the castNum of sprite ItemSpr3 to itemArt3
  351.   set ItemH3 to LaunchH1
  352.   set ItemV3 to LaunchV1
  353.   me(DrawLoc, ItemSpr3, ItemH3, ItemV3)
  354.   set itemdo3 to "MovHandLeftA"
  355.  
  356. method MovHandLeftA
  357.   set ItemH3 to ItemH3 - PixMovH
  358.   me(DrawLocH, ItemSpr3, ItemH3)
  359.   set itemCntr3 to itemCntr3 + 1
  360.   set the castNum of sprite ItemSpr3 to itemArt3 + (random(4) - 1)
  361.   if itemCntr3 > (40 + random(4)) then
  362.     set itemdo3 to "MovHandRiteA"
  363.     set ItemH3 to LaunchH2
  364.     set ItemV3 to LaunchV2
  365.     me(DrawLoc, ItemSpr3, ItemH3, ItemV3)
  366.   end if
  367.  
  368. method MovHandRiteA
  369.   set the castNum of sprite ItemSpr3 to itemArt3 + (random(4) - 1)
  370.   set ItemH3 to ItemH3 + PixMovH
  371.   me(DrawLocH, ItemSpr3, ItemH3)
  372.   set itemCntr3 to itemCntr3 + 1
  373.   if itemCntr3 > 80 then
  374.     set itemCntr3 to 0
  375.     set itemdo3 to "nuttin"
  376.   end if
  377.  
  378. method HandGrabA
  379.   set artt to HandArt5 + droppd
  380.   set itemCntr3 to 0
  381.   set the castNum of sprite ItemSpr3 to artt
  382.   set ItemH3 to ItemH3 - PixMovH
  383.   me(DrawLocH, ItemSpr3, ItemH3)
  384.   set itemdo3 to "HandGrabB"
  385.   if droppd = 1 then
  386.     set weightDo to "WeightTrap"
  387.     set the locH of sprite WeightSpr to -100
  388.     puppetSprite(WtBtnSpr, 1)
  389.     set the foreColor of sprite WtBtnSpr to 220
  390.   else
  391.     puppetSprite(BallBtnSpr, 1)
  392.     set the foreColor of sprite BallBtnSpr to 220
  393.     puppetSprite(ballSpr, 1)
  394.     set the locH of sprite ballSpr to -1000
  395.     set BallDo to "BallTrap"
  396.   end if
  397.  
  398. method HandGrabB
  399.   set itemCntr3 to itemCntr3 + 1
  400.   set ItemH3 to ItemH3 - (PixMovH + itemCntr3)
  401.   me(DrawLoc, ItemSpr3, ItemH3, ItemV3)
  402.   if itemCntr3 > 12 then
  403.     set itemdo3 to "HandGrabC"
  404.     set itemCntr3 to 0
  405.   end if
  406.  
  407. method HandGrabC
  408.   set itemCntr3 to itemCntr3 + 1
  409.   if itemCntr3 > (100 + random(40)) then
  410.     puppetSound("aahh.2")
  411.     set itemdo3 to "nuttin"
  412.     if weightDo = "weighttrap" then
  413.       set the foreColor of sprite WtBtnSpr to 117
  414.       set the castNum of sprite WeightSpr to WtDropArt1
  415.       set weightDo to "nuttin"
  416.       set WeightH to WtHRest
  417.       set WeightV to WtVRest
  418.       me(DrawLoc, WeightSpr, WtHRest, WtVRest)
  419.       puppetSprite(WtBtnSpr, 0)
  420.     else
  421.       if BallDo = "BallTrap" then
  422.         set the foreColor of sprite BallBtnSpr to 117
  423.         set BallDo to "nuttin"
  424.         puppetSprite(ballSpr, 0)
  425.         puppetSprite(BallBtnSpr, 0)
  426.         set itemCntr3 to 0
  427.       end if
  428.     end if
  429.   end if
  430.  
  431. method launchClok
  432.   set BreakDo3 to "BreakClokA"
  433.   set ItemSnd3 to "Hit.5"
  434.   set itemCntr3 to 0
  435.   set clokCntr to 0
  436.   set itemArt3 to ClokArt1
  437.   set the castNum of sprite ItemSpr3 to itemArt3
  438.   set ItemH3 to LaunchH1
  439.   set ItemV3 to LaunchV1
  440.   set itemdo3 to "MovClokLeft"
  441.   me(DrawLoc, ItemSpr3, ItemH3, ItemV3)
  442.  
  443. method MovClokLeft
  444.   if clokCntr < 14 then
  445.     set clokCntr to clokCntr + 1
  446.   else
  447.     set clokCntr to 0
  448.   end if
  449.   set itemArt3 to ClokArt1 + clokCntr
  450.   set the castNum of sprite ItemSpr3 to itemArt3
  451.   set ItemH3 to ItemH3 - PixMovH
  452.   me(DrawLocH, ItemSpr3, ItemH3)
  453.   set itemCntr3 to itemCntr3 + 1
  454.   if itemCntr3 > (40 + random(4)) then
  455.     set itemdo3 to "MovClokRite"
  456.     set ItemH3 to LaunchH2
  457.     set ItemV3 to LaunchV2
  458.     me(DrawLoc, ItemSpr3, ItemH3, ItemV3)
  459.   end if
  460.  
  461. method MovClokRite
  462.   if clokCntr < 14 then
  463.     set clokCntr to clokCntr + 1
  464.   else
  465.     set clokCntr to 0
  466.   end if
  467.   set itemArt3 to ClokArt1 + clokCntr
  468.   set the castNum of sprite ItemSpr3 to itemArt3
  469.   set ItemH3 to ItemH3 + PixMovH + random(4)
  470.   me(DrawLocH, ItemSpr3, ItemH3)
  471.   set itemCntr3 to itemCntr3 + 1
  472.   if itemCntr3 > 80 then
  473.     set itemCntr3 to 0
  474.     set itemdo3 to "nuttin"
  475.     set clokCntr to 0
  476.   end if
  477.  
  478. method BreakClokA droppd
  479.   set mastercntr to mastercntr + 100 + random(50)
  480.   set itemCntr3 to 0
  481.   set itemArt3 to clokArtSmsh
  482.   set the castNum of sprite ItemSpr3 to itemArt3
  483.   set ItemH3 to ItemH3 - PixMovH
  484.   set ItemV3 to ItemV3 + PixMovV
  485.   me(DrawLoc, ItemSpr3, ItemH3, ItemV3)
  486.   set itemdo3 to "BreakClokB"
  487.  
  488. method BreakClokB
  489.   set itemCntr3 to itemCntr3 + 1
  490.   set ItemH3 to ItemH3 - (PixMovH + 2)
  491.   set ItemV3 to ItemV3 + PixMovV
  492.   me(DrawLoc, ItemSpr3, ItemH3, ItemV3)
  493.   set itemdo3 to "BreakClokC"
  494.  
  495. method BreakClokC
  496.   set itemCntr3 to itemCntr3 + 1
  497.   set ItemH3 to ItemH3 - (PixMovH + 4)
  498.   set ItemV3 to ItemV3 + PixMovV
  499.   me(DrawLoc, ItemSpr3, ItemH3, ItemV3)
  500.   if itemCntr3 > 5 then
  501.     set itemdo3 to "nuttin"
  502.     set itemCntr3 to 0
  503.   end if
  504.  
  505. method makeItem1
  506.   set n to random(60)
  507.   if n < 5 then
  508.     set itemart1 to DogArt1
  509.     set ItemSnd1 to "Hit.2"
  510.     set itemValue1 to 2
  511.   else
  512.     if n < 10 then
  513.       set itemart1 to WineArt1
  514.       set ItemSnd1 to "Hit.3"
  515.       set itemValue1 to 7000 + random(1000)
  516.     else
  517.       if n < 15 then
  518.         set itemart1 to VaseArt1
  519.         set ItemSnd1 to "Hit.4"
  520.         set itemValue1 to 12000 + random(2000)
  521.       else
  522.         set itemart1 to bowlart1
  523.         set ItemSnd1 to "Hit.4"
  524.         set itemValue1 to 25000 + random(3000)
  525.       end if
  526.     end if
  527.   end if
  528.  
  529. method launchItem1
  530.   me(makeItem1)
  531.   set the castNum of sprite ItemSpr1 to itemart1
  532.   set ItemH1 to LaunchH1
  533.   set ItemV1 to LaunchV1
  534.   set ItemDo1 to "MovLeftA1"
  535.   set itemCntr1 to 0
  536.   me(DrawLoc, ItemSpr1, ItemH1, ItemV1)
  537.  
  538. method MovLeftA1
  539.   set ItemH1 to ItemH1 - PixMovH
  540.   me(DrawLocH, ItemSpr1, ItemH1)
  541.   set itemCntr1 to itemCntr1 + 1
  542.   set ItemDo1 to "MovLeftB1"
  543.  
  544. method MovLeftB1
  545.   set ItemH1 to ItemH1 - PixMovH
  546.   me(DrawLocH, ItemSpr1, ItemH1)
  547.   set itemCntr1 to itemCntr1 + 1
  548.   set ItemDo1 to "MovLeftC1"
  549.  
  550. method MovLeftC1
  551.   set ItemH1 to ItemH1 - PixMovH
  552.   me(DrawLocH, ItemSpr1, ItemH1)
  553.   set itemCntr1 to itemCntr1 + 1
  554.   set ItemDo1 to "MovLeftD1"
  555.   if itemart1 = bowlart1 then
  556.     me(launchXtra)
  557.   end if
  558.  
  559. method MovLeftD1
  560.   set ItemH1 to ItemH1 - PixMovH
  561.   me(DrawLocH, ItemSpr1, ItemH1)
  562.   set itemCntr1 to itemCntr1 + 1
  563.   if itemCntr1 > (40 + random(3)) then
  564.     set itemart1 to itemart1 + 1
  565.     set the castNum of sprite ItemSpr1 to itemart1
  566.     set ItemDo1 to "MovRite1"
  567.     set ItemH1 to LaunchH2
  568.     set ItemV1 to LaunchV2
  569.     me(DrawLoc, ItemSpr1, ItemH1, ItemV1)
  570.     me(launchItem2)
  571.   end if
  572.  
  573. method MovRite1
  574.   set ItemH1 to ItemH1 + PixMovH
  575.   me(DrawLocH, ItemSpr1, ItemH1)
  576.   set itemCntr1 to itemCntr1 + 1
  577.   if itemCntr1 > (84 + random(2)) then
  578.     set itemCntr1 to 0
  579.     me(launchItem1)
  580.   end if
  581.  
  582. method BreakA1
  583.   me(award, itemValue1)
  584.   set itemart1 to itemart1 + 1
  585.   set the castNum of sprite ItemSpr1 to itemart1
  586.   set ItemH1 to ItemH1 + PixMovH
  587.   me(DrawLocH, ItemSpr1, ItemH1)
  588.   set ItemDo1 to "BreakB1"
  589.  
  590. method BreakB1
  591.   set ItemH1 to ItemH1 + PixMovH
  592.   me(DrawLocH, ItemSpr1, ItemH1)
  593.   set itemCntr1 to itemCntr1 + 1
  594.   set ItemDo1 to "BreakC1"
  595.  
  596. method BreakC1
  597.   set itemart1 to itemart1 + 1
  598.   set the castNum of sprite ItemSpr1 to itemart1
  599.   set ItemH1 to ItemH1 + PixMovH
  600.   me(DrawLocH, ItemSpr1, ItemH1)
  601.   set itemCntr1 to itemCntr1 + 1
  602.   set ItemDo1 to "MovRite1"
  603.  
  604. method makeItem2
  605.   set n to random(60)
  606.   if n < 24 then
  607.     set itemArt2 to DogArt1
  608.     set ItemSnd2 to "Hit.2"
  609.     set itemValue2 to 2
  610.   else
  611.     if n < 40 then
  612.       set itemArt2 to WineArt1
  613.       set ItemSnd2 to "Hit.3"
  614.       set itemValue2 to 7000 + random(1000)
  615.     else
  616.       if n < 53 then
  617.         set itemArt2 to VaseArt1
  618.         set ItemSnd2 to "Hit.4"
  619.         set itemValue2 to 10000 + random(2200)
  620.       else
  621.         set itemArt2 to bowlart1
  622.         set ItemSnd2 to "Hit.4"
  623.         set itemValue2 to 24000 + random(4000)
  624.       end if
  625.     end if
  626.   end if
  627.  
  628. method launchItem2
  629.   me(makeItem2)
  630.   set the castNum of sprite itemspr2 to itemArt2
  631.   set ItemH2 to LaunchH1
  632.   set ItemV2 to LaunchV1
  633.   set ItemDo2 to "MovLeft2"
  634.   set itemCntr2 to 0
  635.   me(DrawLoc, itemspr2, ItemH2, ItemV2)
  636.  
  637. method MovLeft2
  638.   set ItemH2 to ItemH2 - PixMovH
  639.   me(DrawLocH, itemspr2, ItemH2)
  640.   set itemCntr2 to itemCntr2 + 1
  641.   if itemCntr2 > (40 + random(3)) then
  642.     set itemArt2 to itemArt2 + 1
  643.     set the castNum of sprite itemspr2 to itemArt2
  644.     set ItemDo2 to "MovRite2"
  645.     set ItemH2 to LaunchH2
  646.     set ItemV2 to LaunchV2
  647.     me(DrawLoc, itemspr2, ItemH2, ItemV2)
  648.   end if
  649.  
  650. method MovRite2
  651.   if itemCntr2 > 84 then
  652.     nothing()
  653.     exit
  654.   end if
  655.   set ItemH2 to ItemH2 + PixMovH
  656.   me(DrawLocH, itemspr2, ItemH2)
  657.   set itemCntr2 to itemCntr2 + 1
  658.  
  659. method BreakA2
  660.   me(award, itemValue2)
  661.   set itemArt2 to itemArt2 + 1
  662.   set the castNum of sprite itemspr2 to itemArt2
  663.   set ItemH2 to ItemH2 + PixMovH
  664.   me(DrawLocH, itemspr2, ItemH2)
  665.   set ItemDo2 to "BreakB2"
  666.  
  667. method BreakB2
  668.   set ItemH2 to ItemH2 + PixMovH
  669.   me(DrawLocH, itemspr2, ItemH2)
  670.   set itemCntr2 to itemCntr1 + 2
  671.   set ItemDo2 to "BreakC2"
  672.  
  673. method BreakC2
  674.   set itemArt2 to itemArt2 + 1
  675.   set the castNum of sprite itemspr2 to itemArt2
  676.   set ItemH2 to ItemH2 + PixMovH
  677.   me(DrawLocH, itemspr2, ItemH2)
  678.   set itemCntr2 to itemCntr2 + 1
  679.   set ItemDo2 to "MovRite2"
  680.